package com.biostime.rpc.terminal.util;

import com.biostime.rpc.terminal.ResponseCode;
import com.biostime.rpc.terminal.thrift.inout.common.BaseRequest;
import com.biostime.rpc.terminal.thrift.inout.common.BaseResponse;

/**
 * <p>
 * 说明
 * </p>
 *
 * @author yangrzh 2014/7/30
 */
public class RespFactory {

    public static BaseResponse get(BaseRequest baseRequest) {
        BaseResponse baseResponse = new BaseResponse();
        baseResponse.setSeqNo(baseRequest.getSeqNo());
        return baseResponse;
    }

    public static void setRespCode(final BaseResponse baseResp, ResponseCode code) {
        baseResp.setRespCode(code.getCode());
        baseResp.setRespDesc(code.getDesc());
    }

}
